<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			div{
				height: 10000px;
			}
		</style>
	</head>
	<body>
		<div id="">
			
		</div>
	</body>
	<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
	<script type="text/javascript">
		let timer;
		window.onscroll  = function () {
		    if(timer){
		        clearTimeout(timer)
		    }
		    timer = setTimeout(function () {
		        //滚动条位置
		        let scrollTop = document.body.scrollTop || document.documentElement.scrollTop;
		        console.log('滚动条位置：' + scrollTop);
		        timer = undefined;
		    },200)
		}
	</script>
</html>
